<?php
/**
 * 路由文件
 * Created by  yuxianjun001@icloud.com.
 * User: wuchen
 * Date: 2017/12/8
 * Time: 16:10
 */

use NoahBuscher\Macaw\Macaw;

Macaw::get('index','App\admin\controller\Home@index'); //测试参考路由

Macaw::get('info','App\admin\controller\Home@companyInfo'); //测试参考路由2
Macaw::get('date','App\admin\controller\Test@date');//日期
Macaw::get('validator','App\admin\controller\ValidationTest@test');//输入验证测试
Macaw::get('log','App\admin\controller\Log@index');

Macaw::get('name','App\admin\controller\NameTest@index');//名字测试

Macaw::get('taobao','App\admin\controller\Taobao@getTaobaoHome');
Macaw::get('guzzle','App\admin\controller\Test@guzzleTest');
Macaw::get('session','App\admin\controller\SessionTest@session');

Macaw::get('menu','App\admin\controller\Menu@index');


//redis 队列测试
Macaw::get('queuePush','App\admin\controller\RedisQueueTest@push');
Macaw::get('queuePop','App\admin\controller\RedisQueueTest@pop');

//单例模式demo
Macaw::get('single','App\admin\controller\SingleTest@index');

//curl 测试
Macaw::get('curl','App\admin\controller\CurlTest@index');

//队列测试
Macaw::get('splqueue','App\admin\controller\Queue@splQueue');
Macaw::get('arrqueue','App\admin\controller\Queue@arrQueue');

//redis lock测试
Macaw::get('redislock','App\admin\controller\RedisLock@index');


Macaw::get('index22','App\admin\controller\Test@index2');
Macaw::get('mq','App\api\controller\ActiveMq@index');
Macaw::get('swoole',' App\swoole\controller\Test@index');


//搜索引擎测试：
Macaw::get('search','App\search\controller\Elasticsearch@index');

//富友集团
Macaw::get('fuyouxiadan','App\api\controller\FuyouInsurance@createOrder');//富友集团，下单接口
Macaw::get('fuyoucahxun','App\api\controller\FuyouInsurance@queryOrder');//富友集团，订单查询接口


Macaw::post('fuyoubbfh5pay','App\api\controller\FuyouBbyPay@h5Pay');//富友集团，h5 笔笔付，下单
Macaw::post('fuyoubbfh5checkOrder','App\api\controller\FuyouBbyPay@checkOrderFuyou');//富友订单查询
Macaw::post('fuyoubbfh5checkOrderMerchant','App\api\controller\FuyouBbyPay@checkOrderMerchant');//商户订单查询
Macaw::post('fuyoubbfh5OrderClose','App\api\controller\FuyouBbyPay@closeOrder');//订单关闭接口
Macaw::post('fuyoubbfh5binCode','App\api\controller\FuyouBbyPay@checkBankCardInfoByBinCode');//bin码查询银行信息
Macaw::post('fuyoubbfh5bankLimitAmountCheck','App\api\controller\FuyouBbyPay@bankLimitAmountCheck');//限额查询接口

//移动通话相关
Macaw::post('bindx','App\api\controller\CMCCCall@bindX');//绑定手机号A到x
Macaw::post('unbind','App\api\controller\CMCCCall@unbind');//解绑手机


//飞鹅 打印机
Macaw::post('addPrinter','App\api\controller\FeiEPrinter@addPrinter');//添加打印机
Macaw::post('printData','App\api\controller\FeiEPrinter@printData');//打印
Macaw::post('delPrinter','App\api\controller\FeiEPrinter@delPrinter');//删除打印机
Macaw::post('editPrinter','App\api\controller\FeiEPrinter@editPrinter');//修改打印机信息
Macaw::post('clearPrinterList','App\api\controller\FeiEPrinter@clearPrinterList');//清空打印机队列
Macaw::post('checkOrderStatus','App\api\controller\FeiEPrinter@checkOrderStatus');//查看订单状态
Macaw::post('checkTheNumberPrintedOfAPrinterByDate','App\api\controller\FeiEPrinter@checkTheNumberPrintedOfAPrinterByDate');//打印机打印的总订单数
Macaw::post('checkPrinterStatus','App\api\controller\FeiEPrinter@checkPrinterStatus');//打印状态查询

//2024/01/10
Macaw::get('info2','App\home\controller\Home@info');//























Macaw::get('test', function() {
    echo "成功！";die;
});


Macaw::get('lock','App\admin\controller\FileLock@index');


Macaw::get('(:all)', function($fu) {
    echo 'hello ,welcome to  the new php  framework!<br>'.$fu;
});

Macaw::error(function() {
    echo '404 :: Not Found';
});

Macaw::$error_callback = function() {

    throw new Exception("路由无匹配项 404 Not Found");

};

Macaw::dispatch();